{% extends "base.html" %}

{% block head %}
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <title>{{ site.title }}</title>
    <link rel="stylesheet" href="static/css/bootstrap.css"/>
    <link rel="stylesheet" href="static/css/bootstrap-theme.css"/>
    <link rel="stylesheet" href="static/css/bootstrap-select.min.css"/>
    <script src="static/js/jquery-3.3.1.js"></script>
    <script src="static/js/bootstrap.min.js"></script>
    <script src="static/js/bootstrap-select.min.js"></script>
    <script src="static/js/main.js"></script>
    <script src="static/js/pageNav.js"></script>
{% endblock %}

{% block nav_bar %}
    <nav class="navbar navbar-default">
      <div class="container">
        <div class="navbar-header">
          <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
          <a class="navbar-brand" href="#">jQuery Test</a>
        </div>
        <div id="navbar" class="navbar-collapse collapse">
          <ul class="nav navbar-nav">
            <li{% if site.current_page is equalto('home') %} class="active"{% endif %}><a href="#">Home</a></li>
            <li><a href="#">About</a></li>
            {% if site.is_logged %}
            <li><a href="/logout">Logout</a></li>
            {% else %}
            <li class="active"><a href="/logout">Login</a></li>
            {% endif %}
          </ul>
        </div><!--/.nav-collapse -->
      </div>
    </nav>
{% endblock %}

{% block content %}
      <div class="page-header">
        <h1>Tables</h1>
      </div>
      <div class="row">
        <div class="col-sm-4 col-sm-offset-8">
          部门选择：
          <select class="selectPicker" data-live-search="true">
            <option selected="selected" value="0">全部</option>
          </select>
        </div>
      </div>
      <div class="row">
        <div class="col-sm-12">
          <table class="table table-hover" id="teacherInfo">
            <thead>
              <tr>
                <th>ID</th>
                <th>姓名</th>
                <th>性别</th>
                <th>部门</th>
              </tr>
            </thead>
            <tbody>
            </tbody>
          </table>

          <!--<button type="button" class="btn btn-primary" id="getInfo">获取</button>-->
          <!--<ul class="pagination" id="pagination1">-->
            <!--<li><a href="#">&laquo;</a></li>-->
            <!--<li><a href="#" id="1">1</a></li>-->
            <!--<li><a href="#" id="2">2</a></li>-->
            <!--<li><a href="#" id="3">3</a></li>-->
            <!--<li><a href="#">4</a></li>-->
            <!--<li><a href="#">5</a></li>-->
            <!--<li><a href="#">&raquo;</a></li>-->
          <!--</ul>-->

        </div>
        <!--<div class="center-block" style="width: 60%">-->
        <div class="col-sm-8 col-sm-offset-2">
          <div id="pagination1"></div>
        </div>
      </div>
{% endblock %}